//
//  DWCustomPlayerView.h
//  xpkc
//
//  Created by TopSageOSX on 14-8-19.
//  Copyright (c) 2014年 wanmeizty. All rights reserved.
//

#import <UIKit/UIKit.h>
/**
 *  自定义播放器的视图
 */

@protocol changeRateProtocol <NSObject>

-(void)changeRata:(NSInteger)index;


@end

@interface DWCustomPlayerView : UIView


@property (nonatomic ,strong) id <changeRateProtocol>delegate;

/**
 *  提问界面
 */
@property (nonatomic,strong)UIView *questionView;
@property (nonatomic,strong)UIButton *closeBtn;
@property (nonatomic,strong)UIButton *finishBtn;
/**
 *  问题标题输入框
 */
@property (nonatomic,strong)UITextField *questionTitleTextFiled;
/**
 *  问题详细输入框
 */
@property (nonatomic,strong)UITextView *questionTextView;

/**
 *  三大部分视图
 */
@property (nonatomic,strong)UIView *topView;
@property (nonatomic,strong)UIView *bottomView;
@property (nonatomic,strong)UIView *mainView;
/**
 *  触控层
 */
@property (nonatomic,strong)UIView *gestureView;
/**
 *  字幕视图
 */
@property (nonatomic,strong)UILabel *subtitleLabel;
/**
 *  返回按钮
 */
@property (nonatomic,strong)UIButton *backBtn;
/**
 *  视频的标题+目录+|
 */
@property (nonatomic,strong)UILabel *videoTitle;
@property (nonatomic,strong)UILabel *mulu;
@property (nonatomic,strong)UILabel *shu;
/**
 *  最顶的电池条，以及根据电量变色的内容条
 */
@property (nonatomic,strong)UILabel *batteryColorLabel;
/**
 *  提问按钮
 */
@property (nonatomic,strong)UIButton *questionBtn;
/**
 *  清晰度按钮
 */
@property (nonatomic,strong)UIButton *qualityBtn;
/**
 *  清晰度视图
 */
@property (nonatomic,strong)UIView *qualityView;

@property (nonatomic,strong)UIView * ztyQualityView;
/**
 *  播放按钮/暂停按钮
 */
@property (nonatomic,strong)UIButton *playBtn;
/**
 *   上一讲和下一讲
 */
@property (nonatomic,strong)UIButton *passBtn;
@property (nonatomic,strong)UIButton *nextBtn;
/**
 *  进度条，可拖动。。。应该可以点，当前时间/总共时间
 */
@property (nonatomic,strong)UISlider *progressSlider;
@property (nonatomic,strong)UILabel *currentProgressTime;
@property (nonatomic,strong)UILabel *videoTotalTime;
/**
 *  下载按钮
 */
@property (nonatomic,strong)UIButton *downloadBtn;
/**
 *  提示标签，包括显示暂停状态，音量调整，进度调整等
 */
@property (nonatomic,strong)UILabel *noteLabel;
/**
 *  上下滑调节声音，左右滑调节进度
 */
@property (nonatomic,strong)UIImageView *volume;
@property (nonatomic,strong)UIImageView *schedule;
@property (nonatomic,strong)UISlider *volumeSlider;
@property (nonatomic,strong)UIButton *volumeBtn;
/**
 *  收藏按钮
 */
@property (nonatomic,strong)UIButton *favoriteBtn;
/**
 *  变速按钮
 */
@property (nonatomic,strong)UIButton *videoRate;
@property (nonatomic,strong)UIButton *videoRateBg;
/**
 *  倍速视图
 */
@property (nonatomic,strong)UIView *rateView;

@property (nonatomic ,strong) UIView * ztyrateView;
/**
 *  渐隐方法
 */
-(void)menuHiden;
-(void)menuShow;
/**
 *  弹出方法
 */
-(void)menuOut;
-(void)menuIn;
@end
